import service from '@/utils/request'

// @Tags PackagePapperPosition
// @Summary 创建包装纸产品位置
// @Security ApiKeyAuth
// @accept application/json
// @Produce application/json
// @Param data body model.PackagePapperPosition true "创建包装纸产品位置"
// @Success 200 {string} string "{"success":true,"data":{},"msg":"创建成功"}"
// @Router /packagePapperPosition/createPackagePapperPosition [post]
export const createPackagePapperPosition = (data) => {
  return service({
    url: '/packagePapperPosition/createPackagePapperPosition',
    method: 'post',
    data
  })
}

// @Tags PackagePapperPosition
// @Summary 删除包装纸产品位置
// @Security ApiKeyAuth
// @accept application/json
// @Produce application/json
// @Param data body model.PackagePapperPosition true "删除包装纸产品位置"
// @Success 200 {string} string "{"success":true,"data":{},"msg":"删除成功"}"
// @Router /packagePapperPosition/deletePackagePapperPosition [delete]
export const deletePackagePapperPosition = (params) => {
  return service({
    url: '/packagePapperPosition/deletePackagePapperPosition',
    method: 'delete',
    params
  })
}

// @Tags PackagePapperPosition
// @Summary 批量删除包装纸产品位置
// @Security ApiKeyAuth
// @accept application/json
// @Produce application/json
// @Param data body request.IdsReq true "批量删除包装纸产品位置"
// @Success 200 {string} string "{"success":true,"data":{},"msg":"删除成功"}"
// @Router /packagePapperPosition/deletePackagePapperPosition [delete]
export const deletePackagePapperPositionByIds = (params) => {
  return service({
    url: '/packagePapperPosition/deletePackagePapperPositionByIds',
    method: 'delete',
    params
  })
}

// @Tags PackagePapperPosition
// @Summary 更新包装纸产品位置
// @Security ApiKeyAuth
// @accept application/json
// @Produce application/json
// @Param data body model.PackagePapperPosition true "更新包装纸产品位置"
// @Success 200 {string} string "{"success":true,"data":{},"msg":"更新成功"}"
// @Router /packagePapperPosition/updatePackagePapperPosition [put]
export const updatePackagePapperPosition = (data) => {
  return service({
    url: '/packagePapperPosition/updatePackagePapperPosition',
    method: 'put',
    data
  })
}

// @Tags PackagePapperPosition
// @Summary 用id查询包装纸产品位置
// @Security ApiKeyAuth
// @accept application/json
// @Produce application/json
// @Param data query model.PackagePapperPosition true "用id查询包装纸产品位置"
// @Success 200 {string} string "{"success":true,"data":{},"msg":"查询成功"}"
// @Router /packagePapperPosition/findPackagePapperPosition [get]
export const findPackagePapperPosition = (params) => {
  return service({
    url: '/packagePapperPosition/findPackagePapperPosition',
    method: 'get',
    params
  })
}

// @Tags PackagePapperPosition
// @Summary 分页获取包装纸产品位置列表
// @Security ApiKeyAuth
// @accept application/json
// @Produce application/json
// @Param data query request.PageInfo true "分页获取包装纸产品位置列表"
// @Success 200 {string} string "{"success":true,"data":{},"msg":"获取成功"}"
// @Router /packagePapperPosition/getPackagePapperPositionList [get]
export const getPackagePapperPositionList = (params) => {
  return service({
    url: '/packagePapperPosition/getPackagePapperPositionList',
    method: 'get',
    params
  })
}
